package com.my.sort;

/**
 * Created by ZhongGang
 * at 2018/10/9 18:26
 */
public class TopN<T extends Comparable<T>> {

    public T[] topN(T[] elements, int n) {
        if (elements == null || n < 1) {
            throw new IllegalArgumentException();
        }

        int[] indexes = new int[n];
        for (int i = 0; i < elements.length; i++) {

        }

        throw new UnsupportedOperationException();
    }
}
